<template>
  <div class="dashboard-editor-container">
    <!-- <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
      <line-chart :chart-data="lineChartData" />
    </el-row> -->
  </div>
</template>

<script lang="ts">
import "echarts/theme/macarons.js"; // Theme used in BarChart, LineChart, PieChart and RadarChart
import { Component, Vue } from "vue-property-decorator";
import GithubCorner from "@/components/GithubCorner/index.vue";
import BarChart from "./components/BarChart.vue";
import BoxCard from "./components/BoxCard.vue";
import LineChart, { ILineChartData } from "./components/LineChart.vue";
import PanelGroup from "./components/PanelGroup.vue";
import PieChart from "./components/PieChart.vue";
import RadarChart from "./components/RadarChart.vue";
import TodoList from "./components/TodoList/index.vue";
import TransactionTable from "./components/TransactionTable.vue";

const lineChartData: { [type: string]: ILineChartData } = {
  newVisitis: {
    expectedData: [100, 120, 161, 134, 105, 160, 165],
    actualData: [120, 82, 91, 154, 162, 140, 145],
  },
};

@Component({
  name: "DashboardAdmin",
  components: {
    BarChart,
    BoxCard,
    LineChart,
    PanelGroup,
    PieChart,
    RadarChart,
    TodoList,
    TransactionTable,
  },
})
export default class extends Vue {
  private lineChartData = lineChartData.newVisitis;
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  }

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
